]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: Fix showing shield without animation
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Jan 2020 15:09:48 +0000 (16:09 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 10 Jan 2020 15:26:31 +0000 (16:26 +0100)
Commit 24e631ffe2 changed the shield animation to use translation
instead of position.

However once the shield is raised, only an animation will lower it
again, which means the shield is missing when it's supposed to be
shown without animation (for example after an idle blank).

Fix this by resetting the translation-y property in that case.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/927

js/ui/screenShield.js

index a33a96fae253f974305c654d9795eab89b2ddba3..997ca29f54c7cfeb7e1af24a02f5349cc23f8c68 100644 (file)
@@ -1025,6 +1025,7 @@ var ScreenShield = class {
                 },
             });
         } else {
+            this._lockScreenGroup.translation_y = 0;
             this._lockScreenGroup.fixed_position_set = false;
             this._lockScreenShown({ fadeToBlack, animateFade: false });
         }